package com.gxa.logistics.mapper;

import com.gxa.logistics.common.base.RespResult;
import com.gxa.logistics.domain.dto.WarehouseDTO;
import com.gxa.logistics.domain.vo.WarehouseVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
@Mapper
public interface WarehouseMapper {
    int insert(@Param("warehouse_type") String warehouse_type, @Param("warehouse_name") String warehouse_name, @Param("warehouse_address") String warehouse_address);
    int delete(@Param("warehouse_name") String warehouse_name);
    int update(WarehouseDTO warehouseDTO);

    List<WarehouseDTO> selectWarehouse(@Param("index") int index, @Param("limit") int limit);

    int selectCount();
    WarehouseDTO selectWarehouseByName(@Param("warehouse_name") String warehouse_name);
}
